﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommandProcessor.Command
{
    public interface ICommandHandler<in TCommand> where TCommand : ICommand
    {
        //Dinh nghia giao dien lop command
        ICommandResult Execute(TCommand command);
        ICommandResult ExecuteRange(IEnumerable<TCommand> commands);
        ICommandResult DeleteRange(IEnumerable<TCommand> commands);
    }
}
